<template>
    <div>
        <div>作业批改</div>
    </div>
</template>
<script>
export default {
    name:'task',
    data(){
        return{

        }
    },
    beforeRouteEnter (to, from ,next) {
        console.log('beforeRouteEnter',to)
        console.log('beforeRouteEnter',from);
        next()//取消导航行为
    },
    beforeRouteUppdate(to, from , next){//路径不变参数变才会触发
         console.log('beforeRouteUppdate',to)
        console.log('beforeRouteUppdate',from);
        next()//取消导航行为
    }
}
</script>
<style lang="scss">

</style>